<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>教师列表</h2>
	</div>
	<div class="cf">
		<div class="fl">
            <a class="btn" href="{:U('gen')}">生成教师账号</a>
        </div>
        <include file="Public/search"/>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
	<table class="">
    <thead>
        <tr>
		<th class="">用户名</th>
		<th class="">密码</th>
		<th class="">学校ID</th>
		<th class="">操作</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
			<td>{$vo.username}</td>
			<td>{$vo.password}</td>
			<td><?php echo parse_id_to_string($vo['school_id'], 'school_id'); ?></td>
			<td>
				<a href="{:U('Teacher/del?id='.$vo['id'])}" class="confirm ajax-get">删除</a>
			</td>
		</tr>
		</volist>
		<else/>
		<td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
	</div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
	<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
	<script type="text/javascript">
    //导航高亮
    highlight_subnav('{:U('Teacher/index')}');
	</script>
</block>
